package ee.homework.third;

public class HeapSortImpl {

	public static void main(String[] args) {

		int[] arr = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
		HeapSort heapSort = new HeapSort();
		heapSort.buildMaxHeap(arr);
//		heapSort.printList(arr);

		int[] arr2 = new int[] { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 };
		MinHeap minheap = new MinHeap();
		minheap.buildMinHeap(arr2);
		minheap.printList(arr2);

		/*
		 * int[] heap = new int[] { 16, 4, 10, 14, 7, 9, 3, 2, 8, 1 }; HeapSort
		 * heapSort = new HeapSort(); heapSort.maxHeapify(heap, 1);
		 * heapSort.printList(heap); heapSort.sort(heap);
		 * heapSort.printList(heap);
		 */
	}
}
